package com.whw.fy.mapper;

import com.whw.fy.entity.AttendanceStu;
import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface AttendanceStuMapper {
    int deleteByPrimaryKey(Integer attStuId);

    int insert(AttendanceStu record);

    int insertSelective(AttendanceStu record);

    AttendanceStu selectByPrimaryKey(Integer attStuId);

    int updateByPrimaryKeySelective(AttendanceStu record);

    int updateByPrimaryKey(AttendanceStu record);

    int updateBatch(List<AttendanceStu> list);

    int updateBatchSelective(List<AttendanceStu> list);

    int batchInsert(@Param("list") List<AttendanceStu> list);

    List<AttendanceStu> selectAll();

    List<AttendanceStu> selectByClassIDAndCompletionTimes(@Param("classId") Integer classId, @Param("completionTimes") Integer completionTimes);

    List<AttendanceStu> selectByStudentIdAndAttendance(@Param("studentId") Integer studentId, @Param("attendance") Integer attendance);

    List<AttendanceStu> selectByStudentId(@Param("studentId") Integer studentId);

    AttendanceStu selectAllByStudentIdAndCompletionTimesAndClassId(@Param("studentId") Integer studentId, @Param("completionTimes") Integer completionTimes, @Param("classId") Integer classId);
}